home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / sharutil.2 / sharutil / sharutils-4.2 / checks / Makefile.in < prev    next >
Encoding:
Makefile  |  1995-11-25  |  2.0 KB  |  73 lines

  1. # Makefile for check subdirectory in GNU gettext package.
  2. # Copyright (C) 1995 Free Software Foundation, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17.  
  18. PACKAGE = @PACKAGE@
  19. VERSION = @VERSION@
  20.  
  21. SHELL = /bin/sh
  22. @SET_MAKE@
  23.  
  24. srcdir = @srcdir@
  25. top_srcdir = @top_srcdir@
  26. VPATH = @srcdir@
  27.  
  28. subdir = checks
  29.  
  30.  
  31. TESTSRCS = testdata
  32. DISTFILES = ChangeLog Makefile.in $(TESTSRCS)
  33.  
  34. all:
  35.  
  36. check:
  37.     rm -f test.bin test.tmp
  38.     ../src/uudecode $(srcdir)/testdata
  39.     ../src/uuencode test.bin test.bin > test.tmp
  40.     cmp $(srcdir)/testdata test.tmp || exit 1
  41.     rm -f test.bin test.tmp
  42.     @echo ==========================
  43.     @echo All checks are successful.
  44.     @echo ==========================
  45.  
  46. install uninstall tags TAGS id ID:
  47.  
  48. mostlyclean:
  49.     rm -f core core.* *.tmp test.bin
  50.  
  51. clean: mostlyclean
  52.  
  53. distclean: clean
  54.     rm -f Makefile
  55.  
  56. maintainer-clean: distclean
  57.     @echo "This command is intended for maintainers to use;"
  58.     @echo "it deletes files that may require special tools to rebuild."
  59.  
  60. distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
  61. dist: Makefile $(DISTFILES)
  62.     for file in $(DISTFILES); do \
  63.       ln $(srcdir)/$$file $(distdir) 2> /dev/null \
  64.         || cp -p $(srcdir)/$$file $(distdir); \
  65.     done
  66.  
  67. Makefile: Makefile.in ../config.status
  68.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  69.  
  70. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  71. # Otherwise a system limit (for SysV at least) may be exceeded.
  72. .NOEXPORT:
  73.